package com.peas.platform.module.icims.budget.apply.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

// 二上预算附件
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_two_file`")
public class BudgetTwoFilePo extends BasePo {

    //二上预算表ID
    //（二上预算表）外键
    @TableField(value = "`budget_two_id`", jdbcType = JdbcType.BIGINT)
    private Long budgetTwoId;

    //附件类型
    @Size(max = 20, message = "附件类型不能超过20个字符")
    @TableField(value = "`file_type`", jdbcType = JdbcType.VARCHAR)
    private String fileType;

    //附件ID
    //（附件表）外键
    @TableField(value = "`attachment_id`", jdbcType = JdbcType.BIGINT)
    private Long attachmentId;

    //附件名称
    @Size(max = 200, message = "附件名称不能超过200个字符")
    @TableField(value = "`attachment_name`", jdbcType = JdbcType.VARCHAR)
    private String attachmentName;

}
